| 
 | Groovy JDK | |||||||||
| Method Summary | |
|---|---|
| boolean | asBoolean()Coerces an int array to a boolean value. | 
| boolean | contains(Object value)Checks whether the array contains the given value. | 
| Number | count(Object value)Counts the number of occurrences of the given value inside this array. | 
| boolean | equals(int[] right)Compare the contents of this array to the contents of the given array. | 
| Collection | flatten()Flatten an array. | 
| List | getAt(Range range)Support the subscript operator with a range for an int array | 
| List | getAt(IntRange range)Support the subscript operator with an IntRange for an int array | 
| List | getAt(ObjectRange range)Support the subscript operator with an ObjectRange for an int array | 
| List | getAt(Collection indices)Support the subscript operator with a collection for an int array | 
| int | size()Allows arrays to behave similar to collections. | 
| List | toList()Converts this array to a List of the same size, with each element added to the list. | 
| Set | toSet()Converts this array to a Set, with each unique element added to the set. | 
| String | toString()Returns the string representation of the given array. | 
| Method Detail | 
|---|
public boolean asBoolean()
public boolean contains(Object value)
value -  the value being searched for.public Number count(Object value)
compareTo(value) == 0 or equals(value) ).value -  the value being searched for.public boolean equals(int[] right)
right -  the operand array..public Collection flatten()
public List getAt(Range range)
range -  a range indicating the indices for the items to retrieve.public List getAt(IntRange range)
range -  an IntRange indicating the indices for the items to retrieve.public List getAt(ObjectRange range)
range -  an ObjectRange indicating the indices for the items to retrieve.public List getAt(Collection indices)
indices -  a collection of indices for the items to retrieve.public int size()
public List toList()
public Set toSet()
public String toString()
| 
 | Groovy JDK | |||||||||